package com.easylinkin.linkappapi.childinspection.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author linWenLe
 * @Date: 2024/4/03
 * @Description:    巡检记录表
 */
@Data
@TableName("child_inspection_record")
public class InspectionRecordEntity extends Model<InspectionRecordEntity> {

    private String id;

    /**
     * 任务ID
     */
    private String taskId;

    /**
     * 任务点编号
     */
    private String pointId;

    /**
     * 状态 0-待巡检，1-正常，2-异常
     */
    private int status;

    /**
     * 0 正常,1 删除
     */
    private int isDel;

    /**
     * 0:其他填报，1：巡检人填报
     */
    private int type;

    /**
     * 巡检人id
     */
    private String userId;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String userDept;

    /**
     * 指派人员id
     */
    private String assignUserId;

    /**
     * 隐患ID
     */
    private String hiddenDangerId;

    private Date createTime;

    private Date modifyTime;

    private String tenantId;

    private String creator;

    private String modifier;

    @TableField(exist = false)
    List<RectificationRecordEntity> list = new ArrayList<>();


    /**
     * 指派人员名称
     */
    @TableField(exist = false)
    private String assignUserName;
    /**
     * 指派人员部门
     */
    @TableField(exist = false)
    private String assignUserDept;
}
